﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	<!-- Resource dictionary entries should be defined here. -->
	<ResourceDictionary.MergedDictionaries>
		<ResourceDictionary Source="Brushes.xaml"/>
	</ResourceDictionary.MergedDictionaries>
	
		
	<Style x:Key="ListBoxControlPanel" TargetType="{x:Type Border}">
		<Setter Property="Background" Value="{StaticResource ListBoxControlPanelBackgroundBrush}"/>
		<Setter Property="BorderBrush" Value="{StaticResource ListBorder}"/>
		<Setter Property="CornerRadius" Value="6,0,0,6"/>
		<Setter Property="BorderThickness" Value="0,0,1,0"/>
		<Setter Property="Opacity" Value="0.2"/>
		<Style.Resources>
			<Storyboard x:Key="Timeline1">
             	<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)">
                	<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1"/>
                </DoubleAnimationUsingKeyFrames>
        	</Storyboard>
			<Storyboard x:Key="Timeline2">
             	<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)">
                	<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0.2"/>
                </DoubleAnimationUsingKeyFrames>
        	</Storyboard>
		</Style.Resources>
		<Style.Triggers>
			<Trigger Property="IsMouseOver" Value="True">
				<Trigger.EnterActions>
					<BeginStoryboard Storyboard="{StaticResource Timeline1}"/>
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                	<BeginStoryboard Storyboard="{StaticResource Timeline2}"/>
				</Trigger.ExitActions>
			</Trigger>
		</Style.Triggers>
	</Style>
	
</ResourceDictionary>